home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 October / EnigmA AMIGA RUN 01 (1995)(G.R. Edizioni)(IT)[!][issue 1995-10][Aminet 7].iso / Aminet / comm / tcp / AmigaTCP.lha / AmigaTCP / src / session.h < prev    next >
C/C++ Source or Header  |  1989-06-24  |  494b  |  22 lines

  1. extern int mode;
  2. #define    CMD_MODE    1    /* Command mode */
  3. #define    CONV_MODE    2    /* Converse mode */
  4.  
  5. /* Session control structure; only one entry is used at a time */
  6. struct session {
  7.     int type;
  8. #define    FREE    0
  9. #define    TELNET    1
  10. #define    FTP    2
  11.     union {
  12.         struct ftp *ftp;
  13.         struct telnet *telnet;
  14.     } cb;
  15.     int (*parse)();    /* Where to hand typed input when conversing */
  16. };
  17. #define    NULLSESSION    (struct session *)NULL
  18. extern struct session sessions[];
  19.  
  20. extern struct session *current;
  21. extern int16 lport;
  22.